<h1>Students:</h1>

<?php if (isset($students) && is_array($students) && count($students)) : ?>
				
	<table>
		<thead>
			<tr>
			
		<th>Student Name</th>
		<th>Achievement Points</th>
		
			<th><?php echo lang('user_details_actions'); ?></th>
			</tr>
		</thead>
		<tbody>
		
		<?php foreach ($students as $student) : ?>
			<tr>
				
				<td><?php echo $student->first_name. ' '.$student->last_name?></td>
				<td><?php echo $student->achievepoints_time+$student->achievepoints_class+$student->achievepoints_wiki+$student->achievepoints_forum+$student->achievepoints_main+$student->achievepoints_side+$student->achievepoints_meta;?></td>
				<td><?php echo anchor(SITE_AREA .'/content/user_details/edit/'. $student->id, 'Edit Student', '') ?></td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
<?php endif; ?>